export function verifiInArray(value, array) {
    let index = -1;
    for (let i = 0; i < array.length; i++) {
        if (value === array[i]) {
            index = i;
            break;
        }
    }
    if (index >= 0) return true;
    else return false;
}
export function verifiInString(str, type = "phone", typeNum) {
    let result = false;
    switch (type) {
        case "phone":
            let reg = /^1[3456789]\d{9}$/;
            result = reg.test(str);
            break;
        case "password":
            // typeNum
            break;
    }
    return result;
}
